package main

import (
	"fmt"
	"os"
)

func main() {
	//fmt.Println(os.Stat("./z_demo/demo_os_io_buifo/demo04/example1.txt"))
	//fmt.Println(os.Lstat("./z_demo/demo_os_io_buifo/demo04/example1.txt"))
	//os.Link("./z_demo/demo_os_io_buifo/demo04/example1.txt", "./z_demo/demo_os_io_buifo/demo04/example")
	//
	os.Truncate("./z_demo/demo_os_io_buifo/demo04/example1.txt", 10)

	fmt.Println(os.Environ())
	fmt.Println(os.Getenv("IDEA_INITIAL_DIRECTORY"))
	fmt.Println(os.Args)
	fmt.Println(os.Getegid(), os.Geteuid(), os.Getgid())
	fmt.Println(os.Getgroups())
	fmt.Println(os.Getpid())
	fmt.Println(os.Getpagesize())
	fmt.Println(os.Getpid(), os.Getppid())
	fmt.Println(os.Hostname())
	fmt.Println(os.Getuid())

}
